﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Index</title>
       @if (false)
   {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
   }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/regex.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)
<style>
/*编辑页面表格样式*/
.tableForm
{
	width: 100%;
    border: solid 1px #000000;
	border-collapse: collapse;
    margin-top:20px;
}
.tableForm .tdClass
{
	padding: 0px;
	padding: 3px 5px;
	border: solid 1px #000000;
}
.tableForm th
{
	text-align: right;
	padding: 6px 5px;
	border: solid 1px #000000;
}
</style>
<script>
    $(function () {
        $("#toolMenu").smartFloat();
        var hdjsAlert = $("#hdjsAlert").val();
        if (hdjsAlert != "") {
            if (hdjsAlert == "操作成功") {
                alert(hdjsAlert);
            }
            else {
                alert(hdjsAlert);
            }
        }
    });

    function ok() {
         form1.submit();
    }


</script>
</head>
<body style="	font-size: 12px;">
@using (Html.BeginForm("SaveExcel", "PeerReviewQuery", FormMethod.Post, new { id = "form1" }))
{
@*<div class="floatToolMenu" id="toolMenu">
        @Html.DevExpress().Menu(settings =>
       {
           settings.Name = "toolBarMenu";
           settings.ItemAutoWidth = false;
           settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
           settings.Styles.Style.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
           settings.Styles.Style.BorderTop.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);

           settings.Items.Add(item =>
           {
               item.Name = "btnSave";
               item.Text = "导出Excel";
               item.ItemStyle.ForeColor = System.Drawing.Color.Red;
               item.ClientEnabled = true;
               item.Image.Url = Url.Content("~/Content/ControlImages/filesave.png");
               if (ViewData["table"] != null && ViewData["table"] != "")
               {
                   item.Enabled = true;
               }
               else
               {
                   item.Enabled = false; 
               }

           });

           settings.ClientSideEvents.ItemClick = "function(source,e){MenuTop_emClick(source,e)}";
           settings.ItemLinkMode = ItemLinkMode.ContentBounds;
       }).GetHtml()
    </div>*@
    <table>
    <tr>
    <td>
    
    <div style=" text-align:center; font-size:14px; font-weight:bold; margin-top:20px">
          @ViewData["title"]
    </div>
    </td>
    </tr>
      <tr>
    <td>
    <div>
            @Html.Raw(ViewData["table"].ToString())
    </div>
        </td>
    </tr>
         <tr>
    <td>
        <div style=" text-align:center;">
          <table align="center" cellpadding="5" cellspacing="1"  style=" background-color:White">
            <tr>
                <td style=" text-align:right">
                    @Html.DevExpress().Button(settings =>
               {
                   settings.Name = "btnOK";
                   settings.Text = "导出Excel";
                   settings.ClientSideEvents.Click = "ok";
                   settings.ControlStyle.Font.Name = "Microsoft Yahei";
                   settings.Images.Image.Url = Url.Content("~/Content/ControlImages/ok.png");

               }).GetHtml()
                </td>
            </tr>
            </table>
    </div>
            </td>
    </tr>
    </table>
       @Html.Hidden("hdjsAlert", (ViewData["jsAlert"]))
}
</body>
</html>
